"""
Tags for retrieving most popular/top-rated items.

"""

from django import template
from apps.tip.models import *

register = template.Library()

@register.inclusion_tag('mytag.html')
def mytag(userid):
    tags=Tag.objects.get_by_author(userid)
    return {"tags":tags}
